package com.ruoyi.petSys.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 评论对象 comment
 * 
 * @author ruoyi
 * @date 2024-05-20
 */
public class Comment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论用户id */
    @Excel(name = "评论用户id")
    private Long commUserId;

    /** 父级评论id */
    @Excel(name = "父级评论id")
    private Long parentCommId;

    /** 点赞数 */
    @Excel(name = "点赞数")
    private Long upvoteNum;

    /** 帖子id */
    @Excel(name = "帖子id")
    private Long inviId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setCommUserId(Long commUserId) 
    {
        this.commUserId = commUserId;
    }

    public Long getCommUserId() 
    {
        return commUserId;
    }
    public void setParentCommId(Long parentCommId) 
    {
        this.parentCommId = parentCommId;
    }

    public Long getParentCommId() 
    {
        return parentCommId;
    }
    public void setUpvoteNum(Long upvoteNum) 
    {
        this.upvoteNum = upvoteNum;
    }

    public Long getUpvoteNum() 
    {
        return upvoteNum;
    }
    public void setInviId(Long inviId) 
    {
        this.inviId = inviId;
    }

    public Long getInviId() 
    {
        return inviId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("content", getContent())
            .append("commUserId", getCommUserId())
            .append("parentCommId", getParentCommId())
            .append("upvoteNum", getUpvoteNum())
            .append("inviId", getInviId())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
